class Team{
    String name
    User leader
    static belongsTo = User
    static hasMany = [members: User]


    static constraints = {
        name(size: 2..20, blank: false, unique: true)
    }

    String toString() {"${this.name}"}
}

